<div th:fragment="userChild">
	<th:block th:each="item,vs:${treeList}">
		<tr class="">
			<td th:lid="${item.id}" th:upId="${item.upId}" th:upFamily="${item.upFamily}">
				<i th:if="${level>0}" th:each="i:${#numbers.sequence(1,level)}" class="fa">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>
				<input th:if="${item.limitValue == 1}" type="checkbox" checked class="i-checks" th:value="${item.id}">
				<input th:if="${item.limitValue == 0}" type="checkbox" class="i-checks" th:value="${item.id}">
				<i th:if="${item.upChild >= 1}" class="fa fa-file"></i>
				<i th:if="${item.upChild < 1}" class="fa fa-th-list"></i>
				[[${item.resName}]]([[${item.resLimit}]])
			</td>
			<td class="text-center">
				<selection class="text-info" th:if="${item.resType == 0}">页面</selection>
				<selection class="text-danger" th:if="${item.resType == 1}">菜单</selection>
			</td>
		</tr>
		<div th:if="${not #lists.isEmpty(item.childs)}"
			 th:include="sys/user/child :: userChild"
			 th:with="index=${index+1},level=${level+1},treeList=${item.childs}"></div>
	</th:block>
</div>
